package com.ferry.wallpaper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
*  user
* @author 摆渡人 2020-12-10
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(value = "USER")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 用户id
    */
    @TableId(value = "USER_ID",type = IdType.ID_WORKER)
    private Long userId;

    /**
    * 用户邮箱
    */
    @TableField(value = "USER_EMAIL")
    private String userEmail;

    @TableField(value = "USER_PASSWORD")
    private String userPassword;

    @TableField(value = "USER_MONEY")
    private Integer userMoney;

    /**
    * 用户昵称
    */
    @TableField(value = "USER_NICKNAME")
    private String userNickname;

    /**
    * 用户头像
    */
    @TableField(value = "USER_AVATAR")
    private String userAvatar;

    /**
    * 用户性别
    */
    @TableField(value = "USER_SEX")
    private Integer userSex;

    /**
    * 用户生日
    */
    @TableField(value = "USER_BIRTH")
    private Date userBirth;

    @TableField(value = "USER_LEVEL")
    private Integer userLevel;

    /**
    * 用户简介
    */
    @TableField(value = "USER_PROFILE")
    private String userProfile;
}
